package easy

func RountBits(n int) []int {
	bits := make([]int, n+1)
	for i := range bits {
		res := 0
		temp := i
		for temp != 0 {
			res += temp & 1
			temp >>= 1
		}
		bits[i] = res
	}
	return bits
}
